package com.ruoyi.odorservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.odorservice.entity.Site;
import com.ruoyi.odorservice.model.vo.SiteInfoVo;
import com.ruoyi.odorservice.model.vo.SiteSampleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface SiteMapper extends BaseMapper<Site> {

    List<SiteSampleVo> selectSiteComparison(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end, @Param("siteName") String siteName);

    /**
     * 根据点位名称和公司名称搜索点位
     * @param siteName
     * @param companyId
     * @return
     */
    List<SiteInfoVo> getSiteInfoList(@Param("siteName") String siteName, @Param("companyId") Integer companyId);
}
